package com.avocado.base.dto;



import com.avocado.base.validator.UserCurrentPasswordValidation;
import com.avocado.base.validator.user.UserPasswordValidation;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data

@UserPasswordValidation(field1 = "newPassword",field2 = "confirmNewPassword")

public class UserUpdatePasswordDto {



    @NotBlank(message = "操作失败,当前密码不能为空!")
    @NotNull(message ="操作失败,当前密码不能为空!")
    @UserCurrentPasswordValidation
    private String currentPassword;

    @NotBlank(message = "操作失败,新密码不能为空!")
    @NotNull(message ="操作失败,新密码不能为空!")
    private String newPassword;

    @NotBlank(message = "操作失败,确认新密码不能为空!")
    @NotNull(message ="操作失败,确认新密码不能为空!")
    private String confirmNewPassword;
}
